<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>接收JSON数据</title>
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/json2/20160511/json2.min.js"></script>
    <script type="text/javascript">
        console.log(localStorage.getItem("x"));
        if(localStorage.getItem("z")) {
        	console.log("true");
        }
    </script>
</head>
<body>
<p id="id"></p>
<p id="name"></p>
<p id="author"></p>
</body>
</html>